473,378 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Need guidance on and SQL problem

Hi, I'm taking my first and only SQL course (just trying to get my
degree as I prefer network administration and loathe any type of
programming per se) and I have the following problem.

If I have the 4 tables that I created in MS Access and have populated
with information, for instance,

Table: Emp_Info
SSN -primary key
Emp_Name
Address
Telephone
Email
Job_Title_Code
Dept_ID
Hire_Date
Salary

Table: Job_Title_Info
Job_Title_Code -primary key
Job_Title
Exempt
Non-Exempt
Min_Salary
Max_Salary

Table: Dept_Info
Dept_ID -primary key
Dept_Name
Dept_Location
Dept_Head

What I want to do is
Write three SQL queries:

· The first query joins two tables in the above example database and
uses BETWEEN to restrict record selection.

· The second query joins two tables in the above example database and
uses LIKE to restrict record selection.

· The third query uses UNION to join two of the tables

Now, I can do the query in MS Access but is there a way to convert
that into SQL within the MS Access application? How would the SQL
query be written if there is no conversion?

Thanks.
Jul 19 '05 #1
3 1584
RP

"Shawn Carter" <in*@techie.com> schreef in bericht
news:de**************************@posting.google.c om...
Hi, I'm taking my first and only SQL course ..
..
..
What I want to do is
Write three SQL queries:

· The first query joins two tables in the above example database and
uses BETWEEN to restrict record selection.

· The second query joins two tables in the above example database and
uses LIKE to restrict record selection.

· The third query uses UNION to join two of the tables

Now, I can do the query in MS Access but is there a way to convert
that into SQL within the MS Access application? How would the SQL
query be written if there is no conversion?

Thanks.


An Access question in a Mysql newsgroup. How brave.
In the query-builder screen choose view | SQL from the menu, and you have
what you want. Some editting will be necessary I'm afraid.

Good luck with your course :o)
RP
Jul 19 '05 #2
RP

"Shawn Carter" <in*@techie.com> schreef in bericht
news:de**************************@posting.google.c om...
Hi, I'm taking my first and only SQL course ..
..
..
What I want to do is
Write three SQL queries:

· The first query joins two tables in the above example database and
uses BETWEEN to restrict record selection.

· The second query joins two tables in the above example database and
uses LIKE to restrict record selection.

· The third query uses UNION to join two of the tables

Now, I can do the query in MS Access but is there a way to convert
that into SQL within the MS Access application? How would the SQL
query be written if there is no conversion?

Thanks.


An Access question in a Mysql newsgroup. How brave.
In the query-builder screen choose view | SQL from the menu, and you have
what you want. Some editting will be necessary I'm afraid.

Good luck with your course :o)
RP
Jul 19 '05 #3
RP

"Shawn Carter" <in*@techie.com> schreef in bericht
news:de**************************@posting.google.c om...
Hi, I'm taking my first and only SQL course ..
..
..
What I want to do is
Write three SQL queries:

· The first query joins two tables in the above example database and
uses BETWEEN to restrict record selection.

· The second query joins two tables in the above example database and
uses LIKE to restrict record selection.

· The third query uses UNION to join two of the tables

Now, I can do the query in MS Access but is there a way to convert
that into SQL within the MS Access application? How would the SQL
query be written if there is no conversion?

Thanks.


An Access question in a Mysql newsgroup. How brave.
In the query-builder screen choose view | SQL from the menu, and you have
what you want. Some editting will be necessary I'm afraid.

Good luck with your course :o)
RP
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: new_GUY | last post by:
I have a HUGE project (at least for me) and need some guidance. I am trying to create a database for a local university movie club that allows users to input there basic personal information...
0
by: Patrick.O.Ige | last post by:
This what i got from microsoft! GDluck Dear ASP.NET Customer, This alert is to advise you of the availability of a web page that discusses an investigation Microsoft is currently conducting...
6
by: sivashankar | last post by:
hello experts -can any one give me some module to do in asp.net -if u give me the description i will give u with free of cost,since am new now am in my final semester of MCA,just give me some...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
5
by: inetquestion | last post by:
I've got an xml doc which I'm using xslt to create a flat text configuration file. I need to make some dynamic changes in certain circumstances where some of the elements need to have others...
0
by: shinichi | last post by:
Hi all, Im an Oracle newbie here. I have questions here that need guidance from Oracle Expert here. Here it goes: - there are 3 databases that will be used: tableA (2000 records), tableAsub (45000...
2
by: csman24 | last post by:
I'm just looking for some guidance so that I get a start on a school project. Need to write 3 kind of event for a Bus, Passenger, transit system in which: -person: arrives at bus Q after random...
2
by: VirtualLilac | last post by:
Hi, Am trying to build a database for non-profit organisation, its a volunteer job and nobody around to guide me. From my learning I could able to build few reports and forms but am feeling stuck...
8
by: SanjaiGandhi | last post by:
Hi ...i am new to programing....pls help to overcome this program.. The Program is..: if a = 557..using for loop or while or dowhile ..we have to get the answer for 5+5+7..that is what ever...
7
by: yaragallamurali | last post by:
Hi I have thought about my earlier post, refined it and reposting it. I am actually new to schema designing. I have read few articles about data modeling and started building schemas for real time...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.