Click here to Skip to main content
16,004,836 members
Home / Discussions / Database
   

Database

 
QuestionHow to Pass Parameter to a Scheduled Job Pin
Neeraj Kr1-Feb-08 1:39
Neeraj Kr1-Feb-08 1:39 
AnswerRe: How to Pass Parameter to a Scheduled Job Pin
Michael Potter1-Feb-08 8:45
Michael Potter1-Feb-08 8:45 
QuestionWhat is Wrong with the Following Query Pin
Vimalsoft(Pty) Ltd1-Feb-08 0:36
professionalVimalsoft(Pty) Ltd1-Feb-08 0:36 
AnswerRe: What is Wrong with the Following Query Pin
Tobias Schoenig1-Feb-08 1:34
Tobias Schoenig1-Feb-08 1:34 
GeneralRe: What is Wrong with the Following Query Pin
Vimalsoft(Pty) Ltd1-Feb-08 1:45
professionalVimalsoft(Pty) Ltd1-Feb-08 1:45 
GeneralRe: What is Wrong with the Following Query Pin
Tobias Schoenig1-Feb-08 1:53
Tobias Schoenig1-Feb-08 1:53 
GeneralRe: What is Wrong with the Following Query Pin
Vimalsoft(Pty) Ltd1-Feb-08 7:21
professionalVimalsoft(Pty) Ltd1-Feb-08 7:21 
GeneralHelp with this Complecated Query Pin
Vimalsoft(Pty) Ltd31-Jan-08 20:47
professionalVimalsoft(Pty) Ltd31-Jan-08 20:47 
hi all

i will try by all means to Explain my Problem. i have records that Mach with a Field named "Lis_key" ,and differ in a Field named "Func_key".

Lis_key =========Attrib_code===============Func_key======
======================================================
01424545        1212033993               PV000000
01424545             Null                GEOSS001
01424545             Null                GEOSS002
01424545             Null                GEOSS003
.

Now from the Above table, i call records that have Func_key "Parents" and Records that has Func_key "Children". and in my table there are many Parents that have no Children. Am interested in those that have Children. As you can see the Attrib_code of Children is Null, i have this query that Find the Parents that has Children. and its like this


[CODE]
select p1.Attrib_code,p1.Lis_key
from sde.property_Backup p1
where p1.func_key = 'PV000000'
and exists (select 1
from sde.property_Backup p2
where p2.lis_key = p1.lis_key
and substring(p2.func_key,1,5)='GEOSS' And
P1.aCTIVE =1)
[/CODE]

Lis_key ========Attrib_code========Func_key======
=================================================
01424545        1212033993         PV000000
01424545        1215035993         PV000000
01424545        3599345445         PV000000
01424545        5035934544         PV000000
.
and now as you above, table this Parents have Children with a Fun_key that is like "GEOSS", and they are null. i want to Copy a Attrib_code of a Parent to a Child as long as the Lis_key as the same. and the Final results should be like this

Lis_key ========Attrib_code=========Func_key======
=================================================
01424545        1212033993         PV000000
01424545        1212033993         GEOSS001
01424545        1212033993         GEOSS002
01424545        1212033993         GEOSS003
.
No more Nulls for Attrbi_code for GEOSS, So i need an update Statement for the Children.

Thanks

Please Help

Vuyiswa Maseko,

Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding

VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za


QuestionSelect Distinct question Pin
JohnnyHax31-Jan-08 20:07
JohnnyHax31-Jan-08 20:07 
GeneralRe: Select Distinct question Pin
neilarnold31-Jan-08 20:48
neilarnold31-Jan-08 20:48 
GeneralRe: Select Distinct question Pin
Veldrain1-Feb-08 19:33
Veldrain1-Feb-08 19:33 
GeneralRe: Select Distinct question Pin
Mycroft Holmes3-Feb-08 22:00
professionalMycroft Holmes3-Feb-08 22:00 
QuestionTrigger on date change? Pin
Harvey Saayman31-Jan-08 18:54
Harvey Saayman31-Jan-08 18:54 
GeneralRe: Trigger on date change? Pin
Rocky#31-Jan-08 19:46
Rocky#31-Jan-08 19:46 
GeneralRe: Trigger on date change? Pin
Harvey Saayman31-Jan-08 19:49
Harvey Saayman31-Jan-08 19:49 
GeneralRe: Trigger on date change? Pin
neilarnold31-Jan-08 20:55
neilarnold31-Jan-08 20:55 
QuestionHow to save records as individual files & eliminate double \\ Pin
Snowman5831-Jan-08 18:21
Snowman5831-Jan-08 18:21 
GeneralBackUp Pin
sirisha guttikonda31-Jan-08 18:09
sirisha guttikonda31-Jan-08 18:09 
GeneralRe: BackUp Pin
imsathy31-Jan-08 19:16
imsathy31-Jan-08 19:16 
GeneralProblem related to getting date Pin
biswa4731-Jan-08 2:43
biswa4731-Jan-08 2:43 
AnswerRe: Problem related to getting date Pin
Ashfield31-Jan-08 4:16
Ashfield31-Jan-08 4:16 
GeneralGetting the values of the affected row. Pin
John.L.Ponratnam30-Jan-08 22:27
John.L.Ponratnam30-Jan-08 22:27 
GeneralRe: Getting the values of the affected row. Pin
Tobias Schoenig31-Jan-08 0:23
Tobias Schoenig31-Jan-08 0:23 
QuestionCan we update view containng data from two tables. Pin
Satish - Developer30-Jan-08 19:57
Satish - Developer30-Jan-08 19:57 
AnswerRe: Can we update view containng data from two tables. Pin
SimulationofSai31-Jan-08 1:38
SimulationofSai31-Jan-08 1:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.