Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

A join query

 
   Database Help (Home) -> Oracle RSS
Next:  Browsing Prior and Next  
Author Message
Totti

External


Since: Jan 02, 2008
Posts: 25



(Msg. 1) Posted: Thu Dec 18, 2008 1:24 pm
Post subject: A join query
Archived from groups: comp>databases>oracle>misc (more info?)

Hi everybody,
I need i query that i will run behind VB, this query will take a value
from a text box, and look it in the ACCESS DB provided, This is am
easy part, the difficult part for me is when i need to join 2 or mor
tables, e.g.
Take from the textbox some characters say "JACK", take from a Combo
the value "FULLTIME" (found among other values like HOME, PART
TIME.....), and go to the tables FACULTY(for the part of the name
given) and to the table ASSIGNMENTS(for the assignment chosen) and
find me everyone who has "JACK" anywhere in his name from FACULTY and
who happens to be in the ASSIGNMENTS table a "FULLTIME";

This query should bring me everythinge Like : JACK XX, JACKOB,
JACKOBS, JACKSON,... and who have the value Initiated in the Combo,
this can be done because of the _PK and _FK of the DB. These 2 tables
communicate through the relations between their keys.
Can anyone help me with that please?

 >> Stay informed about: A join query 
Back to top
Login to vote
ddf

External


Since: Oct 01, 2008
Posts: 118



(Msg. 2) Posted: Thu Dec 18, 2008 1:29 pm
Post subject: Re: A join query [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Dec 18, 3:24 pm, Totti wrote:
> Hi everybody,
> I need i query that i will run behind VB, this query will take a value
> from a text box, and look it in the ACCESS DB provided, This is am
> easy part, the difficult part for me is when i need to join 2 or mor
> tables, e.g.
> Take from the textbox some characters say "JACK", take from a Combo
> the value "FULLTIME" (found among other values like HOME, PART
> TIME.....), and go to the tables FACULTY(for the part of the name
> given) and to the table ASSIGNMENTS(for the assignment chosen) and
> find me everyone who has "JACK" anywhere in his name from FACULTY and
> who happens to be in the ASSIGNMENTS table a "FULLTIME";
>
> This query should bring me everythinge Like : JACK XX, JACKOB,
> JACKOBS, JACKSON,... and who have the value Initiated in the Combo,
> this can be done because of the _PK and _FK of the DB. These 2 tables
> communicate through the relations between their keys.
> Can anyone help me with that please?

Shouldn't you be in http://groups.google.com/group/MS-ACCESS?
Certainly you do not belong here, as this is an Oracle DBMS
newsgroup. And what have you written to solve this problem? Where is
your code? Do you really expect someone ELSE to write your queries
for you?


David Fitzjarrell

 >> Stay informed about: A join query 
Back to top
Login to vote
Shakespeare

External


Since: Apr 01, 2008
Posts: 60



(Msg. 3) Posted: Thu Dec 18, 2008 5:25 pm
Post subject: Re: A join query [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Totti schreef:
> Hi everybody,
> I need i query that i will run behind VB, this query will take a value
> from a text box, and look it in the ACCESS DB provided, This is am
> easy part, the difficult part for me is when i need to join 2 or mor
> tables, e.g.
> Take from the textbox some characters say "JACK", take from a Combo
> the value "FULLTIME" (found among other values like HOME, PART
> TIME.....), and go to the tables FACULTY(for the part of the name
> given) and to the table ASSIGNMENTS(for the assignment chosen) and
> find me everyone who has "JACK" anywhere in his name from FACULTY and
> who happens to be in the ASSIGNMENTS table a "FULLTIME";
>
> This query should bring me everythinge Like : JACK XX, JACKOB,
> JACKOBS, JACKSON,... and who have the value Initiated in the Combo,
> this can be done because of the _PK and _FK of the DB. These 2 tables
> communicate through the relations between their keys.
> Can anyone help me with that please?

VB, ACCESS.....
You're in the wrong group, pal.....

But I think it should be something like

select * from
faculty f,assignments a
where (some join between a and f)
and f.name like '%JACK%'
and a.assignment = 'FULLTIME'

Shakespeare
 >> Stay informed about: A join query 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Outer Join with an extra condition - I am taking a left outer join to which I would like to add a condition. create table tmp_nani_student(stid number) ; insert into tmp_nani_student values(1) ; insert into tmp_nani_student values(2) ; insert into tmp_nani_student values(3) ; insert into....

Query Question -- Query Using Monthly Data - Hello everyone. I currently have a simple table, DAILY, containing various daily transactions. The table has a date column, transaction 1, transaction2, transaction3 etc. Example: DATE Transaction1 Transaction2 Transaction3 1-1-2007 ...

Query Help - I am a beginning Oracle 9i user and I was hoping that someone can help me. I think I have the basic SQL statements down pat, but this problem is a little too advanced for me. Let's say that I have Table A with the following columns: Food_ID, Descr,..

** help with query? - All, Is there one simple query that could be used to search all tables in the dictionery to find every occurance of the value...let's say "xyz" or the number 25. Thanks, Jack ps. you can probably tell I don't know squat about SQL

Need a Query - Hi All, My Query is that from the emp table i wants find the name of the person who is geting nth maximum salary. when i put n=5 then it will display 5th max salary Thanx sonu
   Database Help (Home) -> Oracle All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]