Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Very complicated SQL
Message
De
15/02/2014 14:11:48
 
 
À
15/02/2014 14:06:28
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01594412
Message ID:
01594422
Vues:
42
>So what is the Relational filed between InvoiceDetail and Status when There is Nostatus field in InvoiceDetail.

There is no relation between that. InvoiceDetail.NoStatus is simply a field in the detail table.

>Assuming Invoiceno, itself to be the relational filed try this SQL.
>
>SELECT MAX(Invoiceno) as InvoiceNo FROM Invoicedetail GROUP BY ;
>Invoiceno INTO CURSOR MAXINVOICE READWRITE && This Will Create a Cursor with all the latest (Last) Invoices
>
>*Alter This Cursor and add a filed Status7 and Status3.
>Alter Table MAXINVIOCE Add Column Status7 N(2) Add Column Status3 N(2)
>
>*Update Status7 and Status3 of All invoices in MAXINVOICE as per your need and delete.

You may take a look at the other message I created. That details the entire script that I have done.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform