Hi
I am new to SQL. I am trying to retrive data about employee name, Start date and Last date. How do I do this? I know it is very simple question but I am very new to this.
thanks
select start date, end date, last name ???
from employee
where ???
It will depened on what the columns are called and what the tables are named. You'll need to look at the table and find the columns you are looking for.
Denny
MCSA (2003) / MCDBA (SQL 2000)
--Anything is possible. All it takes is a little research. (Me)
A select statement will return data for every row (think employee) in the table. You can use the where clause to filter the records returned from the query.
Ex.
Select * From Employee Where EyeColor = 'Brown'
Or
Select * From Employee Where ShoeSize > 8 and YearlySalary < 12000
If you don't have a where clause, all of the data will be returned.
-George
Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.