Click here to Skip to main content
15,887,881 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
SQL
SELECT [EMPORIUM PRICE],[REYNOLD'S PRICE] FROM [SAMPLE OF INVENTORY AND PRICE$O5:P5]

...............................
my query is retrieving only Column header no values...........
please correct my query

[Edit]Code block added[/Edit]
Posted
Updated 23-Feb-13 2:40am
v2
Comments
[no name] 23-Feb-13 6:20am    
Please provide the structure of the table.
Harikamalina 23-Feb-13 6:27am    
i don't thinkl that sql allows to give the names like 's are spaces.... it may show's error.. or not retrive the correct values

1 solution

put a select all query first to find if you are writing an invalid column name.
SQL
SELECT * FROM Your_Table_Name

That may help a little to find your error. For further help please provide the database schema of your table.

Happy Coding.

[Edit]Code block added[/Edit]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900