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 create and refresh a Materialized view in Redshift

Syntax to create materialized view: create materialized view mv_name as (select statement); Syntax to refresh materialized view: REFRESH MATERIALIZED VIEW

Continue reading
How-To Guides / Redshift

How to create a view in Redshift database

Syntax to create a view: create view viewname as (select statement );

Continue reading
How-To Guides / Redshift

How to drop a group in Redshift database

Below is the syntax to drop a group from the Redshift databases where groupname is the name of the group

Continue reading
How-To Guides / Redshift

How to rename a group in Redshift database

Below is the syntax to rename a group in Redshift database: ALTER GROUP groupname RENAME TO new_groupname;

Continue reading
How-To Guides / Redshift

How to remove a user from a group in Redshift database

Below is the command to remove a user from a group in Redshift database where username is the name of

Continue reading
How-To Guides / Redshift

How to drop a user in Redshift

Below is the syntax to drop a single user from the Redshift database. drop user username; Syntax to drop multiple

Continue reading
How-To Guides / Redshift

How to change password of a user in Redshift database

Use the below command to change user password: alter user username password ‘valueforpassword’; Use the below command to set expiration

Continue reading
How-To Guides / Redshift

How to Rename a user in Redshift database

Below is the command to rename a redshift database user: alter user username rename to new_username;

Continue reading
How-To Guides / Redshift

How to rename column in Redshift database

Use the below command to rename column of a Redshift table. alter table tablename rename column columnname to new_columnname;

Continue reading
How-To Guides / Redshift

How to rename a table in Redshift

Below is the syntax to rename a table in Redshift database: alter table tablename rename to new_tablename;

Continue reading

Posts pagination

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