Click here to Skip to main content
15,911,035 members
Home / Discussions / Database
   

Database

 
AnswerRe: Copy 84 million rows from one table to another table. Pin
Eddy Vluggen30-Jan-12 5:34
professionalEddy Vluggen30-Jan-12 5:34 
GeneralRe: Copy 84 million rows from one table to another table. Pin
vanikanc30-Jan-12 5:39
vanikanc30-Jan-12 5:39 
AnswerRe: Copy 84 million rows from one table to another table. Pin
Eddy Vluggen30-Jan-12 7:01
professionalEddy Vluggen30-Jan-12 7:01 
AnswerRe: Copy 84 million rows from one table to another table. Pin
jschell30-Jan-12 9:12
jschell30-Jan-12 9:12 
AnswerRe: Copy 84 million rows from one table to another table. Pin
PIEBALDconsult31-Jan-12 2:59
mvePIEBALDconsult31-Jan-12 2:59 
Question[ANSWERED] Group_Concat and using a query result in the where clause Pin
Dwayner7929-Jan-12 7:35
Dwayner7929-Jan-12 7:35 
AnswerRe: Group_Concat and using a query result in the where clause Pin
Jörgen Andersson29-Jan-12 8:35
professionalJörgen Andersson29-Jan-12 8:35 
GeneralRe: Group_Concat and using a query result in the where clause Pin
Dwayner7929-Jan-12 11:24
Dwayner7929-Jan-12 11:24 
Sorry! Thought the Pre Tags listed the language... Using MySQL.

The group by was the error. I also ended up converting back to chars... For anyone's help, here is the code:

SQL
SELECT ProdID, ProdTitle, GROUP_CONCAT(convert(CONCAT(Contacts.ContactFName, " ", Contacts.ContactLName), CHAR(24))) AS Authors FROM Products LEFT OUTER JOIN ... GROUP BY ProdID


The second question is more of a best practice I guess. Is there a way to then use the "Authors" list in the where clause? I want the whole list returned, but only with matches to a search string. I know I can duplicate the entire GROUP_CONCAT(convert(CONCAT... but it would be nice if it was only once. Also, will the server actually run those twice? as that seems inefficient.

Thanks again!
*****************
"We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW

GeneralRe: Group_Concat and using a query result in the where clause Pin
Dwayner7929-Jan-12 13:01
Dwayner7929-Jan-12 13:01 
QuestionURL rewriting using urlrewriternet not working Pin
Timothy OBrien28-Jan-12 12:17
Timothy OBrien28-Jan-12 12:17 
AnswerRe: URL rewriting using urlrewriternet not working Pin
Timothy OBrien28-Jan-12 12:19
Timothy OBrien28-Jan-12 12:19 
GeneralRe: URL rewriting using urlrewriternet not working Pin
Jörgen Andersson29-Jan-12 8:07
professionalJörgen Andersson29-Jan-12 8:07 
QuestionHow to take database backup on online server ? Pin
infobeena28-Jan-12 1:49
infobeena28-Jan-12 1:49 
AnswerRe: How to take database backup on online server ? Pin
R. Giskard Reventlov28-Jan-12 5:02
R. Giskard Reventlov28-Jan-12 5:02 
AnswerRe: How to take database backup on online server ? Pin
Eddy Vluggen28-Jan-12 5:25
professionalEddy Vluggen28-Jan-12 5:25 
QuestionCreate Database Ms SQl server Pin
Mangore7527-Jan-12 10:42
Mangore7527-Jan-12 10:42 
AnswerRe: Create Database Ms SQl server Pin
Eddy Vluggen27-Jan-12 23:51
professionalEddy Vluggen27-Jan-12 23:51 
GeneralRe: Create Database Ms SQl server Pin
Mangore7528-Jan-12 3:25
Mangore7528-Jan-12 3:25 
GeneralRe: Create Database Ms SQl server Pin
jschell28-Jan-12 4:47
jschell28-Jan-12 4:47 
GeneralRe: Create Database Ms SQl server Pin
Mangore7528-Jan-12 4:57
Mangore7528-Jan-12 4:57 
GeneralRe: Create Database Ms SQl server Pin
jschell28-Jan-12 13:58
jschell28-Jan-12 13:58 
AnswerRe: Create Database Ms SQl server Pin
Eddy Vluggen29-Jan-12 0:16
professionalEddy Vluggen29-Jan-12 0:16 
GeneralRe: Create Database Ms SQl server Pin
Eddy Vluggen28-Jan-12 5:22
professionalEddy Vluggen28-Jan-12 5:22 
GeneralnRe: Create Database Ms SQl server Pin
Mangore7528-Jan-12 5:35
Mangore7528-Jan-12 5:35 
AnswerRe: nRe: Create Database Ms SQl server Pin
Eddy Vluggen28-Jan-12 5:46
professionalEddy Vluggen28-Jan-12 5:46 

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.