Ask a Question related to Microsoft SQL / MS SQL Server, Design and Development.
-
Andrea Moro #1
Council to make an sp.
I must to implent a sp that checks data into a one to one relationed
table and let me know if all data is available or not.
To better understand (sorry for my poor english) imagine this.
TABLE 1
ID DESCR QTA
1 aaa 1
2 bbb 1
TABLE 2
ID DESCR REALQTA
1 aaaa 4
2 bbbb 1
Because data in table 2 is added only in a certain moment of
app live, may be that table 2 doesn't contain any row related
to table 1 or just an half or something like it.
I want to do an sp that say me if row into table1 and table 2
match per number, and that realqta is filled and not an empty
or a negative number (I must to decide in which way recognize
when data is present).
I hope that someone can help me.
Sincerely
Andrea Moro
Andrea Moro Guest
-
i really wana make flash which prog do i download? andhow do i make it?
hey guys im really sorry bout bothering u all but im 17 and wana start makin flash can somone gimme a hand? which program, how to work the program... -
Am I wasting my time? I seek council.
My page has <cfinclude> to create the top menu, which includes text input fields for search parameters. Another <cfinclude> sets a page to below... -
preloaders, why do people make 32000 tutorials on how to make them but NONE on how to USE!
I think I seen thousands of tutorials on how to make a preloader, but what then? Im sitting there with my little load bar and some scripts .. but so... -
GNU make & make.pl are dead: long live Perl makepp
Hi, I have so far not seen the advantage of my 100% Perl syntax - at least not until Emacs learns to syntax highlight the specific parts. Since... -
Ton #2
Council to make an sp.
I think that the sentence "NOT EXISTS" can help you. Here
is an example:
SELECT ID FROM Table1 T1 WHERE T1.Id = T2.Id AND NOT
EXISTS (SELECT ID FROM Table2 T2)
one relationed>-----Original Message-----
>I must to implent a sp that checks data into a one tothis.>table and let me know if all data is available or not.
>
>To better understand (sorry for my poor english) imaginemoment of>
>TABLE 1
>
>ID DESCR QTA
>1 aaa 1
>2 bbb 1
>
>TABLE 2
>
>ID DESCR REALQTA
>1 aaaa 4
>2 bbbb 1
>
>Because data in table 2 is added only in a certainrelated>app live, may be that table 2 doesn't contain any rowtable 2>to table 1 or just an half or something like it.
>
>I want to do an sp that say me if row into table1 andempty>match per number, and that realqta is filled and not anrecognize>or a negative number (I must to decide in which way>when data is present).
>
>I hope that someone can help me.
>
>Sincerely
>Andrea Moro
>
>
>.
>Ton Guest



Reply With Quote

