Skip to content

AWS bytes

  • Cheat Sheets
  • Concepts
    • Show All
    • S3 Concepts
  • How-To Guides
    • Show all
    • EC2
    • EBS
    • S3
    • Redshift
    • IAM
    • SQS
    • CloudWatch
    • Billing
  • CLI Guides
  • Contact Us
  • Tutorials
  • Interview Questions
  • Postgresql

Category: How-To Guides

How-To Guides / Redshift

How to append data into Redshift table

In Redshift, you can move data from a source table to a target table by using ‘ALTER TABLE APPEND’. Syntax:

Continue reading
How-To Guides / Redshift

How to view table definition in Redshift Database

You can query the PG_TABLE_DEF system catalog view to view the definition of a table in Redshift database. SELECT *

Continue reading
How-To Guides / Redshift

How to list all Stored Procedures in Redshift database

You can query the system catalog view pg_proc_info to list all the stored procedures in a Redshift database. pg_proc_info view

Continue reading
How-To Guides / Redshift

Coalesce function in Redshift database

In Redshift database, COALESCE is the alias for NVL function. Both NVL and COALESCE return the same output. NVL returns

Continue reading
How-To Guides / Redshift

How to concatenate columns in Redshift database

Concatenation of values can be done either by using the concatenation operator || or the CONCAT function. Resulting output is

Continue reading
How-To Guides / Redshift

View and modify current_schema and search_path in Redshift database

Run the below select statement to view the ‘current schema’. ‘Current schema’ is the default schema for database object creation

Continue reading
How-To Guides / Redshift

How to get the list of all User Defined Functions in Redshift database

You can query the pg_proc_info system catalog view to list all the user defined functions in a redshift database. pg_proc_info

Continue reading
How-To Guides / Redshift

How to extract the ddl of a function in Redshift database

You can query the pg_proc system catalog table to view the definition of a user defined function(UDF) in Redshift database

Continue reading
How-To Guides / Redshift

How to get the first character of a string in Redshift database

Use SUBSTRING function to get the first character of a string in Redshift database. Syntax: select substring(‘string’,starting position,number of characters);

Continue reading
Redshift

Redshift Tutorials

Continue reading

Posts pagination

«Previous Posts 1 2 3 4 … 22 Next Posts»
  • PostgreSQL Tutorials
  • Redshift Tutorials
WordPress Theme: Maxwell by ThemeZee.