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: Redshift

How-To Guides / Redshift

How to use OFFSET in Redshift Database

In Redshift database, an OFFSET clause is used to skip the first ‘n’ number of rows specified by offset clause

Continue reading
How-To Guides / Redshift

How to get Date from Timestamp in Redshift Database

TRUNC function can be used to extract date from the timestamp. sysdate returns current date with timestamp as shown below:

Continue reading
Redshift / Redshift Concepts

Arithmetic Functions in Redshift database

Amazon Redshift database supports the below Arithmetic functions: ABS FLOOR CEIL ROUND TRUNC ABS function returns the absolute value of

Continue reading
How-To Guides / Redshift

How to call a function in Redshift database

In Redshift database, functions are called from within a select statement as shown below: SELECT function_name(function_arg1, function_arg2,…); Example: Below is

Continue reading
How-To Guides / Redshift

LEFT and RIGHT functions in Redshift database

LEFT function and RIGHT function are string functions that are used to extract the left most or right most substring

Continue reading
How-To Guides / Redshift

POSITION function in Redshift database

In Redshift database, POSITION function is a string function that is used to determine the position of occurrence of a

Continue reading
How-To Guides / Redshift

Redshift – RANK Vs DENSE_RANK Window functions

Both RANK and DENSE_RANK are window functions that operate on a partition (or window) of a result set. RANK function

Continue reading
How-To Guides / Redshift

EXCEPT operator in Redshift Database

EXCEPT operator is used to compare the result sets of 2 queries . It returns rows from first query that

Continue reading
How-To Guides / Redshift

Adding Comments to Tables and Columns in Redshift database

You can add comments on below Redshift database objects: Database Table Columns Constraint View Syntax: COMMENT ON TABLE table_name IS

Continue reading
How-To Guides / Redshift

How to execute a stored procedure in Redshift database

You can use CALL command to execute a stored procedure in Amazon Redshift database. Syntax: CALL proc_name(arg1,arg2,…);

Continue reading

Posts pagination

1 2 3 … 11 Next Posts»
  • PostgreSQL Tutorials
  • Redshift Tutorials
WordPress Theme: Maxwell by ThemeZee.