Viewing 15 posts - 6,541 through 6,555 (of 7,636 total)
Yes, as Steve said store them as strings (char or varchar) and just fill out the strings.
June 21, 2008 at 6:53 pm
Presumably, you would have to figure it out from context and the data state of the record. Maybe keep a STATE or STATUS column that indicated where in your...
June 21, 2008 at 3:03 pm
Jeff Moden (6/21/2008)
June 21, 2008 at 2:52 pm
Jeff Moden (6/21/2008)
Oh, very clever... well done, Barry!Only corrections are to remove the CASE in the final insert and to delete the compressed rows...
Other than that, very, very clever... 🙂
Dang!...
June 21, 2008 at 2:49 pm
No, sorry. Don't think of a View as a separate storage for records, think of it as just an alias for a table expression.
I think that you might want...
June 21, 2008 at 2:37 pm
Not automatically. I think that you would have to create Views/Synonyms in your CI schema to map to the objects in your CS schema.
Plus, I don't think that Case-Sensitivity...
June 21, 2008 at 1:49 pm
Normally, you wouldn't store them that way, you would just store them as some numeric and than leave the leading zeros as a task for presentation formatting.
June 21, 2008 at 1:43 pm
Jeff Moden (6/21/2008)
Dang... I just can't beat the kids anymore... 😀
Yeah, someone always calls the cops on you! :hehe:
June 21, 2008 at 1:40 pm
Oops, sorry. Forgot one of the steps:
--pre-compress the records:
Update TAB
Set Sex = CHAR(CASE Sex When 'M' Then 0 Else 1 End)
--Compress duplicates together and
--encode them into archetype...
June 21, 2008 at 1:11 pm
Vish:
vish (6/19/2008)
I have a table 'TAB' with 3 coulumns 'Name','Age','Sex'
and there is no primary key.
I have multiple duplicate data in my table. for eg..
ABC24M
ABC24M
LMN27M
LMN27M
LMN27M
PQRS25F
XYZ24M
XYZ25M
Now i would...
June 21, 2008 at 1:03 pm
Jeff Moden (6/21/2008)
June 21, 2008 at 12:59 pm
Jeff Moden (6/21/2008)
June 21, 2008 at 12:46 pm
ramu.guggilla (6/21/2008)
table - domain (domain_id, name,creator,date)
table - location (location_id, location_name, domain_id, date)
table - visit(visit_id, domain_id,location_id)
there are foriegnkey relations on these tables. i need...
June 21, 2008 at 12:05 pm
I want to add that IMHO, the reason that the work of ths ANSI SQL has seemed so out of step with users and practioners for the last 15 years...
June 21, 2008 at 10:57 am
Ok, this is all rather complicated, and I am not sure that I have it completely figured out, so anybody who knows better, please correct me:
First, here is a good...
June 21, 2008 at 10:27 am
Viewing 15 posts - 6,541 through 6,555 (of 7,636 total)