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
Postgresql

PostgreSQL – COUNT

COUNT function returns the count of number of rows returned by a sql query. Syntax to return the number of

Continue reading
Postgresql

PostgreSQL – DISTINCT Clause

A DISTINCT clause is used in the select statement to return only the distinct values from a data set. Consider

Continue reading
Postgresql

PostgreSQL – WHERE Clause

A WHERE clause is used in a Select statement to filter the results based on conditions specified in the ‘WHERE’

Continue reading
Postgresql

PostgreSQL – FROM Clause

In SQL, FROM clause is used in the select statement to list the tables from which the data is being

Continue reading
Postgresql

PostgreSQL – SELECT Statement

SELECT statement is used to retrieve data from the database. In it’s basic form, a select statement looks as shown

Continue reading
Postgresql

PostgreSQL – SUM Function

SUM function is an aggregate function that allows you to get the sum of values. Example: Consider the employee table

Continue reading
Postgresql

PostgreSQL – LIMIT Clause

In Postgres, you can use ‘LIMIT’ clause to return only a certain number of rows by a query. Syntax: SELECT

Continue reading
Postgresql

PostgreSQL – ORDER BY Clause

An ‘ORDER BY’ clause is used in the select statement to sort the result set in either ascending or descending

Continue reading
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

Posts pagination

«Previous Posts 1 … 7 8 9 10 11 … 33 Next Posts»
  • PostgreSQL Tutorials
  • Redshift Tutorials
WordPress Theme: Maxwell by ThemeZee.