30 | 05 Nov 2014 @ 10:16 PST | Database | Topic | coalesec((min(start_dt) over(partition by a_id, b_id order by start_dt asc rows between 1 following and 1 following ))-1,'9999-0 | Hi ,
Getting error when i run below stmt ... Plzz help on this , if it wont work i need to write update separately to update null recs i want to avoid it...
coalesec((min(start_dt... |
29 | 31 Oct 2014 @ 04:26 PDT | Database | Topic | Size of a data type : | Hi ,
Can we get size of a data type from database ?
for ex : for integer : 4 Bytes
Can we get this info from any dbc tables or any other way ?....
Thanks,
Rajendra Reddy
|
28 | 17 Oct 2014 @ 06:24 PDT | Database | Reply | TD 14 UDFS/ORACLE EQIVALeNT FUNCTIONS | Thanks Max...
|
27 | 14 Oct 2014 @ 04:02 PDT | Database | Topic | TD 14 UDFS/ORACLE EQIVALeNT FUNCTIONS | Hi Gurus,
Can you please tell where can i get new TD14 functions list and usage about those.
Thnaks in Adv...
Rajendra
|
26 | 11 Oct 2014 @ 01:09 PDT | Database | Reply | Analytic function | Hi try like this,
count(empl_id) over(partition by empl_id,date order by date rows between 1 preceding and 1 preceding)
|
25 | 09 Oct 2014 @ 04:10 PDT | Database | Reply | simplest way to search substring and set flag | lserlohn2 ,
its working for me try once .......
select '000, 111, 123' as List , case when POSITION('000' IN List)>0 then 1 end FLG1
 ... |
24 | 22 Sep 2014 @ 06:55 PDT | Database | Reply | On a Db object which all are the users having access? | Its really helpful , Thanks Rglass....:)
|
23 | 19 Sep 2014 @ 05:44 PDT | Database | Topic | On a Db object which all are the users having access? | hi , could you please tell me how to find
which all are the users having access On a Db object?.
ex : i have a table user_sales_table , i would like to know the users list who has access ... |
22 | 12 Sep 2014 @ 07:46 PDT | Database | Reply | Pass single quote as parameter in stored procedure | Hopefully here is ur solution .......Plz check once
replace procedure proc1 (in oprList varchar(500))
begin
declare ssql1 varchar(1000);
set ssql1=' create table table12 ( ' || oprLi... |
21 | 09 Sep 2014 @ 02:54 PDT | General | Reply | General Question | MultiLoad along with MULTISET table will be better in your case.If u dont want duplucates then go for FASTLOAD&multiset table combination.
|
20 | 09 Sep 2014 @ 02:49 PDT | General | Reply | DATA TYPE FOR EMAIL ADDRESS | i think varchar should be fine for email address...
|
19 | 09 Sep 2014 @ 02:40 PDT | Database | Reply | How to resolve blocking of sessions | Plz try like dis.....
Lock Table UDAMLDEV.GDW_STG_ACCT_CLIST for ACCESS nowait
Select * from UDAMLDEV.GDW_STG_ACCT_CLIST;
if u get below msz Then the table is locked.
7423, "Object alr... |
18 | 09 Sep 2014 @ 02:28 PDT | UDA | Reply | Problem Using UPSERT | Hi ,
I have flat file with two columns data :
id name
-- -------
1 raj
and if i try to do
only update will it allow ? bcz id=2 not avail in table as well.
update ... |
17 | 09 Sep 2014 @ 02:01 PDT | Database | Reply | How do I convert a date or timestamp to a string in Teradata | please try this........
select cast(current_timestamp(0) as timestamp(0) format 'YYYYMMDDHHMISS')
;
*** Query completed. One row found. One column returned.
*** Total ... |
16 | 13 Aug 2014 @ 09:08 PDT | Database | Reply | swap values in two columns using update SQL | Glass , Its awesome . I couldn't expect that solution is this much Easy....
|
15 | 13 Aug 2014 @ 02:47 PDT | Database | Reply | Unicode data | Carlosal, My session char set is ASCII , could you please tell me how to change it to unicode.
|
14 | 13 Aug 2014 @ 01:04 PDT | Database | Reply | Unicode data | Carlosal, here below am providing example with some data wil give better explanation of my requirement.
ex:
col1
-------
abc
漢字;
abc漢
in col1 i have data like above . Bu... |
13 | 13 Aug 2014 @ 12:47 PDT | Database | Reply | Transpose columns to row in a single query | MOUSUSI,
sel
max(case when rn=1 then ref.a end) as X,
max(case when rn=2 then ref.a end) as y,
m... |
12 | 13 Aug 2014 @ 12:25 PDT | Database | Reply | Unicode data | Carlosal,
I think TRANSLATE_CHK() will do chk on un translatable char's .
I would like to determine wether unicode data is present or not ?.
I am not bothering about untranslatable chars.
D... |
11 | 13 Aug 2014 @ 12:22 PDT | Database | Reply | Delete duplicate in a single query | sel
A,B,C
FROM
table
group by A,B,C .
|
10 | 12 Aug 2014 @ 11:36 PDT | Database | Topic | Unicode data | Hi , can some one help me to find out sol...
How to determine one column has unocode data or not ?
is there any function avail??
Reason :: I have one table , it has huge data. On... |
9 | 09 Aug 2014 @ 06:12 PDT | Database | Reply | Stored procedure conversion from Oracle to Teradata | Dieter ,
Can you please provide more info. on below stmt.
**When you CALL the SP it's actually calling an exported function of that shared object **
While calling exported function o... |
8 | 09 Aug 2014 @ 05:53 PDT | Database | Reply | Blank space check based on the position | PFB ::
sel
'abc def' as str1
,'abcdef' as str2
,char(str1)
,char(oreplace(str1,' ',''))
,char(str2)
,case when char(str1)<>char(oreplace(str1,'... |
7 | 09 Aug 2014 @ 05:52 PDT | Database | Reply | Blank space check based on the position | Can you plase check below code.
sel
'abc def' as str1
,'abcdef' as str2
,char(str1)
,char(oreplace(str1,' ',''))
,char(str2)
,case when char(str... |
6 | 09 Aug 2014 @ 05:23 PDT | Database | Reply | Delete from table all | Thank u dieter..its really helpful .
|