Sql

Log in to stop seeing adverts
This page may contain links to companies such as eBay and Amazon. As an affiliate of these sites I may earn commission if you click the link and make a purchase

Status
Not open for further replies.

Joe_Fox

Well-Known Member
Does anybody know how I can solve the following:

I'm trying to run the following query:

Code:
select  Subject.ID,
        Subject.Name, 
        Files.File_Name,
        Files.Date_Created,
        Files.Date_Closed
 
from Subject
inner join Files
 
on Subject.ID=Files.ID
order Subject.ID

The problem is that the columns named 'Name' and 'ID' are stored SQL procedures and when I write the SQL, they turn to blue, as the query analyzer recognises then as commands.

Does anyone know how do I get around this problem? Just to let you know that I cannot rename the column headers.

If anyone can help that'd be brilliant.

Thanks,
Joe
 
Sussed it out. For information you put double quotes around the column header.
 
Status
Not open for further replies.
Log in to stop seeing adverts

P Pld Pts
1Liverpool1639
2Chelsea1735
3Arsenal1733
4Nottm F1731
5Bournemouth1728
6Manchester C  1828
7Aston Villa1728
8Newcastle1726
9Fulham1725
10Brighton1725
11Tottenham 1723
12Brentford1723
13Manchester U1722
14West Ham1720
15Everton1717
16Palace1716
17Leicester1714
18Wolves1712
19Ipswich1712
20Southampton176

Latest posts

Back
Top