1st question: I am trying to import excel files. Is there a way to set primary keys and foreign keys while importing the files?
2nd question: How do you set up foreign keys?
3rd question: I am trying to write some complex queries as I have learned I am having trouble doing a simple query looking for a string.
Ex: I have a table(Named client) clientID firstName lastName address
'client1' 'James' 'Smith' 'Chicago'
If I wanted to search for address with chicago
SELECT cl.address
FROM client cl
WHERE cl.address = 'detroit'
It is show address with nothing. If I take out the WHERE then it shows it.
How do you query a string?? I would think 'string' would work?
2nd question: How do you set up foreign keys?
3rd question: I am trying to write some complex queries as I have learned I am having trouble doing a simple query looking for a string.
Ex: I have a table(Named client) clientID firstName lastName address
'client1' 'James' 'Smith' 'Chicago'
If I wanted to search for address with chicago
SELECT cl.address
FROM client cl
WHERE cl.address = 'detroit'
It is show address with nothing. If I take out the WHERE then it shows it.
How do you query a string?? I would think 'string' would work?