Hi Kamaleshwari,
You are getting good advice about data normalization, etc.
I run into this problem sometimes when I use other people's data and they don't always distribute it in the best data formats (and you end up stuck with what you have),
If you are after a quick and dirty solution it may be easiest to reload the data into a new table using a LOAD DATA statement where you specify it is delimited...
User Profile
Collapse
-
Thanks!!! That is exactly what I was looking for. I was trying some version of that but I thought I had to cast the vector to return it as a constant. But as it compiles I see now that I don't!
Thanks!
MicheleLeave a comment:
-
Hi,
If I'm understanding this right, I think you might get into trouble joining the two tables on doc ID because you have a many to one relationship (e.g. Doc1 is listed two times in the second table) and that's going to screw up your aggregations.
What you want to do is aggregate table 1 and then aggregate table 2 and then join the results. The easiest way to do this is by creating two intermediate tables and then...Leave a comment:
-
Returning reference to vector from function
Hello:
What is the syntax for returning a reference to a vector from a function? I have a private vector and I want to return it using a public get function (like in the code below), but I believe that what I have will make a copy of the vector, and my real vector is several hundred bytes. Do I have to cast it as a constant? What is the syntax for that (or where does one look)?
Sorry if these are basic questions -...
No activity results to display
Show More
Leave a comment: