Calling SQL Experts ... Chalanachithram.com | Topics | Search
Hide Clipart | Log Out | Register | Edit Profile

Last 30 mins | 1 | 2 | 4 hours     Last 1 | 7 Days

Chalanachithram.com DB » TF Industry related » Archive through March 10, 2012 » Calling SQL Experts « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5862
Registered: 02-2009
Posted From: 76.95.148.203

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, March 09, 2012 - 11:01 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Pulpfiction:




yep I did sent a msg
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Pulpfiction
Hero
Username: Pulpfiction

Post Number: 19234
Registered: 02-2009
Posted From: 183.82.97.43

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, March 09, 2012 - 10:59 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Driverramudu:




bro can u come online on yahoo messenger

pulpfictionccdb
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5861
Registered: 02-2009
Posted From: 76.95.148.203

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, March 09, 2012 - 10:58 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Pulpfiction:




r u sure?
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Pulpfiction
Hero
Username: Pulpfiction

Post Number: 19233
Registered: 02-2009
Posted From: 183.82.97.43

Rating: N/A
Votes: 0 (Vote!)

Posted on Friday, March 09, 2012 - 10:36 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

the queries arent working ..

:-(
Top of pagePrevious messageNext messageBottom of page Link to this message

Dreamcatcher
Side Hero
Username: Dreamcatcher

Post Number: 2684
Registered: 11-2009
Posted From: 208.86.145.68

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 02:52 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Driverramudu:

Yep you can have simple one table with
The name Family




Exactly, nenu kooda idey anukunna.
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5850
Registered: 02-2009
Posted From: 198.228.222.126

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 02:48 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Dreamcatcher:




Yep you can have simple one table with
The name Family

Having columns like personId, name
ParentPersonId that's it

Mottham khandhaan info set cheyavacchu :D
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Dreamcatcher
Side Hero
Username: Dreamcatcher

Post Number: 2682
Registered: 11-2009
Posted From: 208.86.145.68

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 01:51 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Pulpfiction:




Why do you need a grandchild table bro? isn't grandchild child of a father? You already have tables to capture father to child relationship.
Top of pagePrevious messageNext messageBottom of page Link to this message

Sachin
Megastar
Username: Sachin

Post Number: 27856
Registered: 04-2008
Posted From: 209.249.19.126

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 01:47 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Driverramudu:

Would explain later with xamples




vaaake
share ki gross ki thedaa theliyakapothenemi..daatar maaya box office disco lo iragadeesthaaadu... ki ki ki ...
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5848
Registered: 02-2009
Posted From: 198.228.222.126

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 01:29 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Sachin:



Would explain later with xamples :-)
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Sachin
Megastar
Username: Sachin

Post Number: 27853
Registered: 04-2008
Posted From: 209.249.19.126

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 01:13 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Driverramudu:

Nenu mastu complex queries
Almost total sequential program converted
As set queries and achieved the same

I never ever used single cursor sine many
Years




ardham kaaledu bhayyaaaa
share ki gross ki thedaa theliyakapothenemi..daatar maaya box office disco lo iragadeesthaaadu... ki ki ki ...
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5847
Registered: 02-2009
Posted From: 198.228.222.126

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 01:07 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Sachin:



Ivanni chaala chinna chinna simple queries

Nenu mastu complex queries
Almost total sequential program converted
As set queries and achieved the same

I never ever used single cursor sine many
Years :-)

College days lone realize ai unte gee batiki
GC setlio undedi :-(
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Shikari
Side Hero
Username: Shikari

Post Number: 7626
Registered: 03-2010
Posted From: 183.82.187.70

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 01:03 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Sachin:

driver vuncle 1st bench student



class leader aithe
http://x.co/bgEg http://x.co/bgEb
http://www.youtube.com/watch?v=VXfXghRxy9M
http://x.co/bgEk
Top of pagePrevious messageNext messageBottom of page Link to this message

Sachin
Megastar
Username: Sachin

Post Number: 27852
Registered: 04-2008
Posted From: 209.249.19.126

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 01:00 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Shikari:

tution lo allari cheyakunda chaduvukuntunnaru enti?




driver vuncle 1st bench student
share ki gross ki thedaa theliyakapothenemi..daatar maaya box office disco lo iragadeesthaaadu... ki ki ki ...
Top of pagePrevious messageNext messageBottom of page Link to this message

Shikari
Side Hero
Username: Shikari

Post Number: 7624
Registered: 03-2010
Posted From: 183.82.187.70

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 12:59 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

tution lo allari cheyakunda chaduvukuntunnaru enti?
http://x.co/bgEg http://x.co/bgEb
http://www.youtube.com/watch?v=VXfXghRxy9M
http://x.co/bgEk
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5844
Registered: 02-2009
Posted From: 198.228.222.126

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 12:57 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

If u want just count and if u r using SQL server then use below one query

Select f.fatherid, c. ChildCount,gc.grandchildcount
From father as f
Outer apply
(
Select count(1) as ChildCount
From child as ic
Where ic.fatherid = f.fatherid
) as c
Outer apply
(
Select count(1) as grandchildcount
From grandchild as igc
Where igc.fatherid = f.fatherid
)

This will give just count under father context
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Just4fun
Megastar
Username: Just4fun

Post Number: 25452
Registered: 10-2007
Posted From: 174.37.61.78

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 12:47 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Driverramudu:

exists and not exists is better than in or not in

expecailly when you know NULL may be there in sub-query

for performance

another thing is use top clause instead of count or selecting some columns in the sub query :-)

this is one of the performance query tuning concept


Top of pagePrevious messageNext messageBottom of page Link to this message

Sachin
Megastar
Username: Sachin

Post Number: 27851
Registered: 04-2008
Posted From: 209.249.19.126

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 12:34 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

-- number of children per father who have at least one grandchild

WITH father_with_grandchild
AS ( SELECT fatherid
FROM grandchild
GROUP BY fatherid
HAVING COUNT(*) >1)
SELECT fatherid, count(*) no_of_childern
FROM father JOIN child ON ( father.fatherid = child.fatherid)
JOIN father_with_grandchild fwg ON ( father.fatherid = fwg.fatherid)
GROUP BY fatherid


-- number of children per father who have less than 3 granchild

WITH sub_set
AS ( SELECT fatherid
FROM grandchild
GROUP BY fatherid
HAVING COUNT(*) < 3 )
SELECT fatherid, count(*) no_of_childern
FROM father JOIN child ON ( father.fatherid = child.fatherid)
JOIN sub_set fwg ON ( father.fatherid = fwg.fatherid)
GROUP BY fatherid


-- number of children per father who have more than 3 grandchildren without passport number


WITH sub_set
AS ( SELECT fatherid
FROM grandchild
WHERE PassportNumber IS NULL
GROUP BY fatherid
HAVING COUNT(*) > 3 )
SELECT fatherid, count(*) no_of_childern
FROM father JOIN child ON ( father.fatherid = child.fatherid)
JOIN sub_set fwg ON ( father.fatherid = fwg.fatherid)
GROUP BY fatherid
share ki gross ki thedaa theliyakapothenemi..daatar maaya box office disco lo iragadeesthaaadu... ki ki ki ...
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5843
Registered: 02-2009
Posted From: 76.95.148.203

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:51 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Just4fun:



exists and not exists is better than in or not in

expecailly when you know NULL may be there in sub-query

for performance

another thing is use top clause instead of count or selecting some columns in the sub query :-)

this is one of the performance query tuning concept :-)
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Just4fun
Megastar
Username: Just4fun

Post Number: 25451
Registered: 10-2007
Posted From: 66.207.139.14

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:44 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Driverramudu:

then it works

again if father table added this it complex the query so i used and peferred exists


KEKA..

I never used 'exists' in oracle..so enta comple query aina pai format lo rasestunta
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5842
Registered: 02-2009
Posted From: 76.95.148.203

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:42 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Just4fun:



then it works

again if father table added this it complex the query so i used and peferred exists
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Just4fun
Megastar
Username: Just4fun

Post Number: 25449
Registered: 10-2007
Posted From: 66.207.139.14

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:40 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Driverramudu:

ikkada per child or father annappudu under that context you have to show count

where as in above query give total count not for each child entamandi grand child ani ivvadu




just add group by kaka

select c.child_id,count(c.child_id) from Child c,Grand_Child gc where c.child_id=gc.child_id group by c.child_id
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5838
Registered: 02-2009
Posted From: 76.95.148.203

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:18 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Pulpfiction:

can u confirm my last post query is the final one




yep bro I confirmed
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5837
Registered: 02-2009
Posted From: 76.95.148.203

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:18 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Just4fun:

select count(*) from Child c,Grand_Child gc where c.child_id=gc.child_id




ikkada per child or father annappudu under that context you have to show count

where as in above query give total count not for each child entamandi grand child ani ivvadu
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Pulpfiction
Hero
Username: Pulpfiction

Post Number: 19227
Registered: 02-2009
Posted From: 183.82.97.43

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:16 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

driver bro

can u confirm my last post query is the final one
Top of pagePrevious messageNext messageBottom of page Link to this message

Pulpfiction
Hero
Username: Pulpfiction

Post Number: 19226
Registered: 02-2009
Posted From: 183.82.97.43

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:15 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

select f.fatherId,count(c.childId)
from child as c
inner join father as f on f.fatherid = c.fatherid
where exists
(
select top 1 1
from grandchild as gc
where gc.childid = c.childid
)
group by f.fatherid

select f.fatherId,count(c.childId)
from child as c
inner join father as f on f.fatherid = c.fatherid
where 3 >
(
select count(1)
from grandchild as gc
where gc.childid = c.childid
)
group by f.fatherid

select f.fatherId,count(c.childId)
from child as c
inner join father as f on f.fatherid = c.fatherid
where 3 <
(
select count(1)
from grandchild as gc
where gc.childid = c.childid
and gc.passportnumber is null
)
group by f.fatherid
Top of pagePrevious messageNext messageBottom of page Link to this message

Just4fun
Megastar
Username: Just4fun

Post Number: 25448
Registered: 10-2007
Posted From: 174.37.61.78

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:15 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

@Driver kaka 1st ans ila rayachha?

select count(*) from Child c,Grand_Child gc where c.child_id=gc.child_id
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5836
Registered: 02-2009
Posted From: 76.95.148.203

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:14 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Pulpfiction:




u welcome bro
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Pulpfiction
Hero
Username: Pulpfiction

Post Number: 19225
Registered: 02-2009
Posted From: 183.82.97.43

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:14 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

thanks brother
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5835
Registered: 02-2009
Posted From: 76.95.148.203

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:13 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Outlaw:



copy and paste kada
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5834
Registered: 02-2009
Posted From: 76.95.148.203

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:13 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

sorry add group by f.fatherid for all three queries
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Outlaw
Junior Artist
Username: Outlaw

Post Number: 221
Registered: 02-2012
Posted From: 66.193.93.3

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:13 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Driverramudu:




Appude raasi dobbava keka.
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5833
Registered: 02-2009
Posted From: 76.95.148.203

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:12 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

select f.fatherId,count(c.childId)
from child as c
inner join father as f on f.fatherid = c.fatherid
where exists
(
select top 1 1
from grandchild as gc
where gc.childid = c.childid
)

select f.fatherId,count(c.childId)
from child as c
inner join father as f on f.fatherid = c.fatherid
where 3 >
(
select count(1)
from grandchild as gc
where gc.childid = c.childid
)

select f.fatherId,count(c.childId)
from child as c
inner join father as f on f.fatherid = c.fatherid
where 3 <
(
select count(1)
from grandchild as gc
where gc.childid = c.childid
and gc.passportnumber is null
)
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Pulpfiction
Hero
Username: Pulpfiction

Post Number: 19224
Registered: 02-2009
Posted From: 183.82.97.43

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:11 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

driver annai ..

thanks ..

please see my latest requirements
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5832
Registered: 02-2009
Posted From: 76.95.148.203

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:10 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

select *
from child as c
where exists
(
select top 1 1
from grandchild as gc
where gc.childid = c.childid
)

select *
from child as c
where 3 >
(
select count(1)
from grandchild as gc
where gc.childid = c.childid
)

select *
from child as c
where 3 <
(
select count(1)
from grandchild as gc
where gc.childid = c.childid
and gc.passportnumber is null
)
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Pulpfiction
Hero
Username: Pulpfiction

Post Number: 19223
Registered: 02-2009
Posted From: 183.82.97.43

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:09 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

sorry

this is what is needed

number of children per father who have at least one grandchild
number of children per father who have less than 3 granchild
number of children per father who have more than 3 grandchildren without passport number
Top of pagePrevious messageNext messageBottom of page Link to this message

Driverramudu
Side Hero
Username: Driverramudu

Post Number: 5831
Registered: 02-2009
Posted From: 76.95.148.203

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:07 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

then wat is urs Q
Life is Race. I am in. Driving is my PASSION.
Top of pagePrevious messageNext messageBottom of page Link to this message

Outlaw
Junior Artist
Username: Outlaw

Post Number: 220
Registered: 02-2012
Posted From: 66.193.93.3

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:07 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

then what?
Top of pagePrevious messageNext messageBottom of page Link to this message

Pulpfiction
Hero
Username: Pulpfiction

Post Number: 19222
Registered: 02-2009
Posted From: 183.82.97.43

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:07 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

need queries for

number of children who have at least one grandchild
number of children who have less than 3 granchild
number of children who have more than 3 grandchildren without passport number
Top of pagePrevious messageNext messageBottom of page Link to this message

Pulpfiction
Hero
Username: Pulpfiction

Post Number: 19221
Registered: 02-2009
Posted From: 183.82.97.43

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:06 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

no kindaling please
Top of pagePrevious messageNext messageBottom of page Link to this message

Pulpfiction
Hero
Username: Pulpfiction

Post Number: 19220
Registered: 02-2009
Posted From: 183.82.97.43

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, March 08, 2012 - 11:06 am:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

Table Called Father with only one field 'FatherId'

Table Called Child with two fields 'ChildId' and 'FatherId'

Table Called Grand Child with four fields
'GrandChildId' ,
'Child Id',
'FatherId' ,
'PassportNumber'

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image HASH(0x8f1c628){Movie Clipart}
Show / Hide regular icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Show / Hide Filmy icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  


Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: