Getting a dynamic Sample - response (4) by smull
Hi Dieter....that looks like it could be very useful. The table I will be selecting from will 99% of the time be between 30k=100k rows (not that large). Forgive my ignorance in terms of SQL I am a...
View ArticleGetting a dynamic Sample - response (5) by dnoeth
This should be exactly the output you wanted, it's not a true statistically valid sample, but probably close enough.When you need to get a better sample using RANDOM you must to nest it in a Derived...
View ArticleGetting a dynamic Sample - response (6) by smull
Hi Dieter...If I use your original syntax would I produce the same customers each time. What I mean by this is that as the year goes on the group of customers will be available for selection again and...
View ArticleGetting a dynamic Sample - response (7) by dnoeth
The same value will always result in the same HashRow, that's why is said "xxx must be a column which is (close to) unique". If it's the logical Primary Key of this table you're not going to load the...
View ArticleDBC View for privileges for all users? - forum topic by kjcohen
Currently when I run a SELECT against DBC.UserRoleRights it only brings back results for my user. Is there a view or a way to see the same result of UserRoleRights but for all users?Forums: Database
View ArticleDBC View for privileges for all users? - response (1) by dnoeth
dbc.AllRoleRightsV :-)Dieter
View ArticleDBC View for privileges for all users? - response (2) by kjcohen
I may not have explained as well as I could have.So when doing a sel * from dbc.userrolerights I receive a list of every rolename / databasename / tablename / columnname / accessright / grantorname for...
View ArticleDBC View for privileges for all users? - response (3) by dnoeth
Ok, why don't you join it to dbc.RoleMembersV?Dieter
View ArticleRounding down decimals - forum topic by aodabasio
I have a very simple request. Rounding down to the full number. For example I have a duration 0.9585, I want to show it as 0. If I have duration as 2.8505, I want to show it as 2.Forums: Database
View ArticleMerge Statement Errors - MERGE Failed. 3707 - forum topic by lkosturko
We are having challenges with a Merge statement. The SQL we are using for the source data works fine when run as a select statement, but for some reason will not run when within the merge statement -...
View ArticleRounding down decimals - response (2) by dnoeth
This is called truncating, if it's up to 18 digits you can simply cast to a bigint: select cast(x as bigint)Or CAST(x - x MOD 1 AS DEC(38,0))Dieter
View ArticleCrash Code 3701 encountered while creating a volatile table - forum topic by...
Hi All,I am trying to create a volatile table by selecting data from an existing table.However, when I execute the CREATE TABLE query, I get the following error.CREATE TABLE failed. Please do not...
View ArticleQuery Tuning - response (12) by simhadrijk
Can you paste your SQL (insert and select) may be by which dnoeth can provide you much more explanation.
View ArticleBTEQ is not returning proper error code when run file is not present. -...
Qun and Fred-I need some guidance. I am trying to invoke teradat sql scipt via unix. However, my id has an ldap authentication. I am to run it interactively (bteq then enter...then .logmech ldap enter...
View ArticleEnabling ALC, Pros and cons - response (1) by simhadrijk
Hi Harish,For the character data type, before Teradata 13.10, MVC (multi value compression) was restricted to fixed-length char¬acter columns (CHAR data type) and columns up to 255 characters wide. For...
View ArticleEnabling ALC, Pros and cons - response (2) by simhadrijk
So enabling the ALC will not cause you any impact. But please remember the during application of compression of UNICODE fields. In our project, we faced with data corruption for UNICODE fields upon...
View ArticleCovered Query - response (4) by rajeev saravanan
Hi Dieter, Thanks for the inputs Regards R.Rajeev
View Article