Good morning:
i need your help: i've got 2 questions:
the first one is:
i use bteq to connect to Teradata and i want to select the first 5 records of a table but returned just 2 columns.
select top 5 * from DWH_LOG.procesos where nom_proceso = 'wedo_sqntbalanceexpire';
*** Query completed. One row found. 8 columns returned.
*** Total elapsed time was 1 second.
Num_proceso Nom_proceso
----------- ---------------------------------------------------------------
119 wedo_sqntbalanceexpire
BTEQ -- Enter your DBC/SQL request or BTEQ command:
but the table has 8 colums as you can see below:
Column Name Type Comment
------------------------------ ---- ---------------------------------------
Num_proceso I ?
Nom_proceso CV ?
Fec_proceso TS ?
Periodicidad CV ?
Prefijo_planos CV ?
Tiempo_Estimado I ?
FecUltimoCorteDatos TS ?
Status CV ?
what can i do to return all columns in the query?
2nd - is there any command to show me which databases and tables a database user has access and what kind of permissions. i.e select - insert permissions?
id appreciate your help, thanks
select command using BTEQ is not returning all fields
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: