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

Command Help : Alter table modify column - response (10) by Shelley

Depending on what exactly you are trying to do, you can run an update to change values in the table. To change column format I would do an insert select from the old table into a new table with the new...

View Article


Secondary indexes - response (11) by Shelley

Partitioned primary indexes are great for large tables where you consistently access the data by some type or range, ie day, week, month as an example. These will reduce full table scans especially if...

View Article


PPI - forum topic by macktd

Hello Experts, Please help me  I have problem with UPI, i defined UPI has customer_number,order_date. My questions: 1)Why PPI allows UPI for partition? 2)Here, Why order_date will allow dupulication?...

View Article

Secondary indexes - response (12) by VandeBergB

As was mentioned earlier, MLOAD supports NUSI's, but it won't support USI's...in that case you might look at other suggestions like Shelly's PPI input or drop and recreate as pre and post load sql 

View Article

Create database and database space concepts - response (4) by usmans

Thanks Dnoeth, This clears up a lot of confusion and helps me clearing my concepts regarding the space. Cheers

View Article


How to assign rights of existing user to a newly created user? - response (4)...

Thanks Harpreet, I understand this query will give me any direct rights the user has on a specific database as well the rights held by a user through roles on a particular database. This is what I was...

View Article

Getting a MAX value of a column for date intersection - forum topic by impressme

Hello, I've been working on this problem for a while and need some advice. I'm not sure if what I'm trying to do is achievable without using a programming language. I can only use SQL in a BTEQ and no...

View Article

Macro default value - response (5) by Krupakaran

Can any one please let me know, that can we have default parameter in stored procedure like the above macro?

View Article


Macro default value - response (6) by KS42982

Not sure about SP, but if you have to pass the default parameter to SP, you can use macro to pass default parameter and call SP from the macro.

View Article


PPI - response (1) by pawan0608

i m not clear what exactly is your doubt. 1) you can define NUPI with PPI as well 2) order_date and customer_number both can have duplicate values, but there combination should be unique.

View Article

PPI - response (2) by macktd

Hi, Pawan Thanks for your response, Actually i defined UNIQUE PRIMARY INDEX (Customer_Number, Order_Date) As per our rule, UPI can't be allow in PPI, Eventhough i defined UPI has Order_Date as well as...

View Article

on product join - response (6) by Jessy Mahesh Kothapalli

Hi Koen ! Thanks for great elaboration !

View Article

PPI - response (3) by mandeep_m91

your UPI is not the order_date only. It's the combination of Customer_Number and order_date. Since Customer number is different (101 and 102), therefore there is no issue with the records.  Try this...

View Article


PPI - response (4) by macktd

Thanks for your response mandeep, I got it.  Thanks & Regards, mack

View Article

Internal stored procedure getting executed only once within a do-while loop...

I am trying to call a stored procedure within a do-while loop in a main stored procedure. The problem is that internal stored procedure is getting executed only once and the code exits from the...

View Article


Internal stored procedure getting executed only once within a do-while loop...

Niar, Please post the rest of the outer SP.  Without seeing how you are setting cc_max & cc_min, it's tough to evaluate what might be happening Thanks

View Article

Internal stored procedure getting executed only once within a do-while loop...

Hi VandeBergB The outer sp is provided below. Intially i am creating a table by picking up columns and datatypes from other table. Later, I am calling a stored procedure in the second do-while loop,...

View Article


Large-scale update question - forum topic by rtefft

I have a table with 700m rows, evenly distributed 1-column integer NUPI plus 3-column integer USI (1st col us the also PI).  Queries run fine, but when we push updates or deletes to this table in ETL...

View Article

Store Procedure Return Codes & Failed Query Txt - forum topic by anandc

Hi All Just wanted to know if we can capture the actual query that failed while a stored procedure was executing. I tried capturing Activity Count, SQL State, SQL code - but just in case wanted to know...

View Article

Store Procedure Return Codes & Failed Query Txt - response (1) by TD@NIAR

Hi Anand One way is to declare a a variable of length around varchar(10000) and assign your query to it. Later create a table which has column names as your procedure name, step name, and the sql...

View Article
Browsing all 14773 articles
Browse latest View live


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