More Help with 2006 paper (1 Viewer)

Niksta123

Member
Joined
Aug 24, 2005
Messages
117
Gender
Female
HSC
2007
Can some one help me out on:

How to construct an SQL command from the HSC IPT 2006 paper Qu 21 (A)

thanks :)
 

peter19

New Member
Joined
Oct 15, 2007
Messages
4
Location
Rose Bay
Gender
Male
HSC
2010
Niksta123 said:
Can some one help me out on:

How to construct an SQL command from the HSC IPT 2006 paper Qu 21 (A)

thanks :)
I know the answer to that question but im not going to tell you. Simply because im bitter and mean.
 

Niksta123

Member
Joined
Aug 24, 2005
Messages
117
Gender
Female
HSC
2007
I've had a go at it...can some1 tell me if this is correct or if not what is wrong with it..


SELECT CountryName
FROM 'Countries'
WHERE Continent = 'South America' AND Language = 'Spanish'
 

jwkhan

New Member
Joined
Mar 7, 2007
Messages
12
Gender
Undisclosed
HSC
N/A
hello...
lol lemme have a look at the question
 

MathsIsWeird

Member
Joined
Sep 13, 2006
Messages
187
Gender
Male
HSC
2007
Im pretty sure thats right Niksta, i did that paper about 6 months ago its about the only thing i can remember from IPT, but just wait for someone else to check because i lost the paper lol.
 
Last edited:
Joined
Aug 15, 2006
Messages
842
Location
Sydney, NSW
Gender
Male
HSC
2007
Niksta123 said:
SELECT CountryName
FROM 'Countries'
WHERE Continent = 'South America' AND Language = 'Spanish'
Almost right, you don't need single quotes around the table countries, since it's an internal entity of the database.

So would be like this:

Code:
SELECT CountryName FROM Countries WHERE Continent = 'South America' AND Language = 'Spanish';
Don't mind the semicolon, that's just how I do my mysql queries.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top