Quantcast
Channel: Teradata Forums - Database
Browsing all 14773 articles
Browse latest View live

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 Article


Getting 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 Article


Getting 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 Article

Getting 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 Article

Getting a dynamic Sample - response (8) by smull

Great stuff ...thanks Dieter

View Article


DBC 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 Article

DBC View for privileges for all users? - response (1) by dnoeth

dbc.AllRoleRightsV :-)Dieter

View Article

DBC 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 Article


DBC View for privileges for all users? - response (3) by dnoeth

Ok, why don't you join it to dbc.RoleMembersV?Dieter

View Article


DBC View for privileges for all users? - response (4) by kjcohen

Perfect, thank you.

View Article

Rounding 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 Article

Merge 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 Article

Rounding down decimals - response (1) by KS42982

SELECT CAST(columnname as integer)

View Article


Rounding 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 Article

Crash 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 Article


Query 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 Article

BTEQ 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 Article


Enabling 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 Article

Enabling 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 Article

Covered Query - response (4) by rajeev saravanan

Hi Dieter, Thanks for the inputs Regards R.Rajeev 

View Article
Browsing all 14773 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>