Results 1 to 2 of 2

Thread: sql question

  1. #1
    Join Date
    Jun 2004
    Posts
    1

    sql question

    Hi, I have a program called shopassist that permit me make sql sentences. I need to get next fields: description and cost price from Invntry.DB so I did the next:

    select description, cost price from Invntry.DB

    but It doesn't worked, I've tried the next:

    select description, [cost price] from Invntry.DB

    select description, 'cost price' from Invntry.DB

    select description, "cost price" from Invntry.DB

    but nothing. someone knows what can I do?. Thankyou!!

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    Are you sure [Inventory.DB] is a table in msaccess? Access will not allow such naming convention.


    try this

    select description, [cost price] from Invntry


    If it is not ms-access then try this


    select description, [cost price] from [Invntry.db]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •