dbTalk Databases Forums  

Difference between last and first transaction

comp.databases comp.databases


Discuss Difference between last and first transaction in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nicoletta2
 
Posts: n/a

Default Difference between last and first transaction - 02-28-2008 , 07:48 AM






I have an oracle database with a transactions table.

One field is the versus (Entry or Exit), another is the transaction time.

I have to extract who have a difference between last yesterday exit
transaction and first today entry transaction less then 11 hours

Someone can help me in query building?

The table count is about 1 milion, and daily transaction are about 3-4
thousands

Nicoletta from Italy

--

questo articolo e` stato inviato via web dal servizio gratuito
http://www.newsland.it/news segnala gli abusi ad abuse (AT) newsland (DOT) it



Reply With Quote
  #2  
Old   
Ed Prochak
 
Posts: n/a

Default Re: Difference between last and first transaction - 03-03-2008 , 07:08 AM






On Feb 28, 8:48 am, frt... (AT) virgilio (DOT) it (Nicoletta2) wrote:
Quote:
I have an oracle database with a transactions table.

One field is the versus (Entry or Exit), another is the transaction time.

I have to extract who have a difference between last yesterday exit
transaction and first today entry transaction less then 11 hours

Someone can help me in query building?

The table count is about 1 milion, and daily transaction are about 3-4
thousands

Nicoletta from Italy

--

questo articolo e` stato inviato via web dal servizio gratuitohttp://www.newsland.it/newssegnala gli abusi ad ab... (AT) newsland (DOT) it
A good way to write complex queries is to break down the requirements
into parts and then put the pieces together to for the final result.
So can you write these queries:
1: a query to show the last exit from yesterday?
2: a query to show the first entry from today?

Come back with these queries and what else that you have tried and we
can help more.
Ed


Reply With Quote
  #3  
Old   
Ed Prochak
 
Posts: n/a

Default Re: Difference between last and first transaction - 03-03-2008 , 07:08 AM



On Feb 28, 8:48 am, frt... (AT) virgilio (DOT) it (Nicoletta2) wrote:
Quote:
I have an oracle database with a transactions table.

One field is the versus (Entry or Exit), another is the transaction time.

I have to extract who have a difference between last yesterday exit
transaction and first today entry transaction less then 11 hours

Someone can help me in query building?

The table count is about 1 milion, and daily transaction are about 3-4
thousands

Nicoletta from Italy

--

questo articolo e` stato inviato via web dal servizio gratuitohttp://www.newsland.it/newssegnala gli abusi ad ab... (AT) newsland (DOT) it
A good way to write complex queries is to break down the requirements
into parts and then put the pieces together to for the final result.
So can you write these queries:
1: a query to show the last exit from yesterday?
2: a query to show the first entry from today?

Come back with these queries and what else that you have tried and we
can help more.
Ed


Reply With Quote
  #4  
Old   
Ed Prochak
 
Posts: n/a

Default Re: Difference between last and first transaction - 03-03-2008 , 07:08 AM



On Feb 28, 8:48 am, frt... (AT) virgilio (DOT) it (Nicoletta2) wrote:
Quote:
I have an oracle database with a transactions table.

One field is the versus (Entry or Exit), another is the transaction time.

I have to extract who have a difference between last yesterday exit
transaction and first today entry transaction less then 11 hours

Someone can help me in query building?

The table count is about 1 milion, and daily transaction are about 3-4
thousands

Nicoletta from Italy

--

questo articolo e` stato inviato via web dal servizio gratuitohttp://www.newsland.it/newssegnala gli abusi ad ab... (AT) newsland (DOT) it
A good way to write complex queries is to break down the requirements
into parts and then put the pieces together to for the final result.
So can you write these queries:
1: a query to show the last exit from yesterday?
2: a query to show the first entry from today?

Come back with these queries and what else that you have tried and we
can help more.
Ed


Reply With Quote
  #5  
Old   
David Cressey
 
Posts: n/a

Default Re: Difference between last and first transaction - 03-03-2008 , 04:54 PM




"Ed Prochak" <edprochak (AT) gmail (DOT) com> wrote

Quote:
On Feb 28, 8:48 am, frt... (AT) virgilio (DOT) it (Nicoletta2) wrote:
I have an oracle database with a transactions table.

One field is the versus (Entry or Exit), another is the transaction
time.

I have to extract who have a difference between last yesterday exit
transaction and first today entry transaction less then 11 hours

Someone can help me in query building?

The table count is about 1 milion, and daily transaction are about 3-4
thousands

Nicoletta from Italy

--

questo articolo e` stato inviato via web dal servizio
gratuitohttp://www.newsland.it/newssegnala gli abusi ad ab... (AT) newsland (DOT) it

A good way to write complex queries is to break down the requirements
into parts and then put the pieces together to for the final result.
So can you write these queries:
1: a query to show the last exit from yesterday?
2: a query to show the first entry from today?

Come back with these queries and what else that you have tried and we
can help more.
Ed
Excellent response, Ed! I hope Nicoletta uses your feedback and gets back
to you.




Reply With Quote
  #6  
Old   
David Cressey
 
Posts: n/a

Default Re: Difference between last and first transaction - 03-03-2008 , 04:54 PM




"Ed Prochak" <edprochak (AT) gmail (DOT) com> wrote

Quote:
On Feb 28, 8:48 am, frt... (AT) virgilio (DOT) it (Nicoletta2) wrote:
I have an oracle database with a transactions table.

One field is the versus (Entry or Exit), another is the transaction
time.

I have to extract who have a difference between last yesterday exit
transaction and first today entry transaction less then 11 hours

Someone can help me in query building?

The table count is about 1 milion, and daily transaction are about 3-4
thousands

Nicoletta from Italy

--

questo articolo e` stato inviato via web dal servizio
gratuitohttp://www.newsland.it/newssegnala gli abusi ad ab... (AT) newsland (DOT) it

A good way to write complex queries is to break down the requirements
into parts and then put the pieces together to for the final result.
So can you write these queries:
1: a query to show the last exit from yesterday?
2: a query to show the first entry from today?

Come back with these queries and what else that you have tried and we
can help more.
Ed
Excellent response, Ed! I hope Nicoletta uses your feedback and gets back
to you.




Reply With Quote
  #7  
Old   
David Cressey
 
Posts: n/a

Default Re: Difference between last and first transaction - 03-03-2008 , 04:54 PM




"Ed Prochak" <edprochak (AT) gmail (DOT) com> wrote

Quote:
On Feb 28, 8:48 am, frt... (AT) virgilio (DOT) it (Nicoletta2) wrote:
I have an oracle database with a transactions table.

One field is the versus (Entry or Exit), another is the transaction
time.

I have to extract who have a difference between last yesterday exit
transaction and first today entry transaction less then 11 hours

Someone can help me in query building?

The table count is about 1 milion, and daily transaction are about 3-4
thousands

Nicoletta from Italy

--

questo articolo e` stato inviato via web dal servizio
gratuitohttp://www.newsland.it/newssegnala gli abusi ad ab... (AT) newsland (DOT) it

A good way to write complex queries is to break down the requirements
into parts and then put the pieces together to for the final result.
So can you write these queries:
1: a query to show the last exit from yesterday?
2: a query to show the first entry from today?

Come back with these queries and what else that you have tried and we
can help more.
Ed
Excellent response, Ed! I hope Nicoletta uses your feedback and gets back
to you.




Reply With Quote
  #8  
Old   
Ed Prochak
 
Posts: n/a

Default Re: Difference between last and first transaction - 03-04-2008 , 11:24 AM



On Mar 3, 5:54 pm, "David Cressey" <cresse... (AT) verizon (DOT) net> wrote:
Quote:
"Ed Prochak" <edproc... (AT) gmail (DOT) com> wrote in message

news:9ffe0610-5bb8-469a-82f7-65755e7ec682 (AT) s12g2000prg (DOT) googlegroups.com...

On Feb 28, 8:48 am, frt... (AT) virgilio (DOT) it (Nicoletta2) wrote:
I have an oracle database with a transactions table.

One field is the versus (Entry or Exit), another is the transaction
time.

I have to extract who have a difference between last yesterday exit
transaction and first today entry transaction less then 11 hours

Someone can help me in query building?

The table count is about 1 milion, and daily transaction are about 3-4
thousands

Nicoletta from Italy

--

questo articolo e` stato inviato via web dal servizio

gratuitohttp://www.newsland.it/newssegnalagli abusi ad ab... (AT) newsland (DOT) it



A good way to write complex queries is to break down the requirements
into parts and then put the pieces together to for the final result.
So can you write these queries:
1: a query to show the last exit from yesterday?
2: a query to show the first entry from today?

Come back with these queries and what else that you have tried and we
can help more.
Ed

Excellent response, Ed! I hope Nicoletta uses your feedback and gets back
to you.
I try to be helpful without doing it for others. 2 reasons:
1 If it is homework, they need to learn it. It is better to learn by
struggling thru it rather than having it done for you.
2.If it is not homework, why should I do your work for which you are
getting paid? (unless you offer to send a check! 8^)

So Nicoletta at least try. Show us our attempts and we can help.

Ed


Reply With Quote
  #9  
Old   
Ed Prochak
 
Posts: n/a

Default Re: Difference between last and first transaction - 03-04-2008 , 11:24 AM



On Mar 3, 5:54 pm, "David Cressey" <cresse... (AT) verizon (DOT) net> wrote:
Quote:
"Ed Prochak" <edproc... (AT) gmail (DOT) com> wrote in message

news:9ffe0610-5bb8-469a-82f7-65755e7ec682 (AT) s12g2000prg (DOT) googlegroups.com...

On Feb 28, 8:48 am, frt... (AT) virgilio (DOT) it (Nicoletta2) wrote:
I have an oracle database with a transactions table.

One field is the versus (Entry or Exit), another is the transaction
time.

I have to extract who have a difference between last yesterday exit
transaction and first today entry transaction less then 11 hours

Someone can help me in query building?

The table count is about 1 milion, and daily transaction are about 3-4
thousands

Nicoletta from Italy

--

questo articolo e` stato inviato via web dal servizio

gratuitohttp://www.newsland.it/newssegnalagli abusi ad ab... (AT) newsland (DOT) it



A good way to write complex queries is to break down the requirements
into parts and then put the pieces together to for the final result.
So can you write these queries:
1: a query to show the last exit from yesterday?
2: a query to show the first entry from today?

Come back with these queries and what else that you have tried and we
can help more.
Ed

Excellent response, Ed! I hope Nicoletta uses your feedback and gets back
to you.
I try to be helpful without doing it for others. 2 reasons:
1 If it is homework, they need to learn it. It is better to learn by
struggling thru it rather than having it done for you.
2.If it is not homework, why should I do your work for which you are
getting paid? (unless you offer to send a check! 8^)

So Nicoletta at least try. Show us our attempts and we can help.

Ed


Reply With Quote
  #10  
Old   
Ed Prochak
 
Posts: n/a

Default Re: Difference between last and first transaction - 03-04-2008 , 11:24 AM



On Mar 3, 5:54 pm, "David Cressey" <cresse... (AT) verizon (DOT) net> wrote:
Quote:
"Ed Prochak" <edproc... (AT) gmail (DOT) com> wrote in message

news:9ffe0610-5bb8-469a-82f7-65755e7ec682 (AT) s12g2000prg (DOT) googlegroups.com...

On Feb 28, 8:48 am, frt... (AT) virgilio (DOT) it (Nicoletta2) wrote:
I have an oracle database with a transactions table.

One field is the versus (Entry or Exit), another is the transaction
time.

I have to extract who have a difference between last yesterday exit
transaction and first today entry transaction less then 11 hours

Someone can help me in query building?

The table count is about 1 milion, and daily transaction are about 3-4
thousands

Nicoletta from Italy

--

questo articolo e` stato inviato via web dal servizio

gratuitohttp://www.newsland.it/newssegnalagli abusi ad ab... (AT) newsland (DOT) it



A good way to write complex queries is to break down the requirements
into parts and then put the pieces together to for the final result.
So can you write these queries:
1: a query to show the last exit from yesterday?
2: a query to show the first entry from today?

Come back with these queries and what else that you have tried and we
can help more.
Ed

Excellent response, Ed! I hope Nicoletta uses your feedback and gets back
to you.
I try to be helpful without doing it for others. 2 reasons:
1 If it is homework, they need to learn it. It is better to learn by
struggling thru it rather than having it done for you.
2.If it is not homework, why should I do your work for which you are
getting paid? (unless you offer to send a check! 8^)

So Nicoletta at least try. Show us our attempts and we can help.

Ed


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.