|
From: eighthman11 on 29 Jul 2008 16:04 Hello everyone. Hope someone can help. I have a table with two columns Material Number and Material Description. Sample data below: Material# Description 10000 This is item 10000 10000
From: Roy Harvey (SQL Server MVP) on 29 Jul 2008 16:18 On Tue, 29 Jul 2008 13:04:32 -0700 (PDT), eighthman11 <rdshultz(a)nooter.com> wrote: >Hello everyone. > >Hope someone can help. I have a table with two columns Material >Number and Material Description. Sample data below: > >Material# Description >10000 This is item 10000 >10000 I see that you started to try to ask a question in the Subject, but it is not at all clear (to me at least) what you are asking for. Perhaps you can be a bit more specific. Roy Harvey Beacon Falls, CT
From: Plamen Ratchev on 29 Jul 2008 16:31 It is not clear what you need, but maybe this: SELECT material_nbr, MAX(description) AS material_description FROM Materials GROUP BY material_nbr; Plamen Ratchev http://www.SQLStudio.com
From: --CELKO-- on 29 Jul 2008 17:15 Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. If you know how, follow ISO-11179 data element naming conventions and formatting rules. Sample data is also a good idea, along with clear specifications. It is very hard to debug code when you do not let us see it. What you did post used #, which will screw up your data dictionary when you try to put that data element name on the Internet, "description" of what? etc. Then you never finished asking a question in the posting. This is too vague to be considered seriously. If you want to learn how to ask a question on a Newsgroup, look at: http://www.catb.org/~esr/faqs/smart-questions.html
From: Erland Sommarskog on 2 Aug 2008 04:18 eighthman11 (rdshultz(a)nooter.com) writes: > Hope someone can help. I have a table with two columns Material > Number and Material Description. Sample data below: > > Material# Description > 10000 This is item 10000 > 10000 Looks like you pressed the Send button too quickly? -- Erland Sommarskog, SQL Server MVP, esquel(a)sommarskog.se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
|
Pages: 1 Prev: Accepting wildcards like % in input parameters of stored procedures Next: Softclarity Builder |