YugabyteDB Tips
  • Home
  • About
  • Featured Videos

Category: SQL Functions

YugabyteDB Tips > SQL Functions

Generate a Random Decimal Number between Two Values 

Jim KnicelyFebruary 9, 2023

In YSQL there is the familiar built-in function named RANDOM which generates a random value between 0 (inclusive) and 1 (exclusive). Although […]

Read More

Display Query Results in a Crosstab-like Representation in YSQLSH

Jim KnicelyFebruary 8, 2023

Pivoting a the rows of a query’s result set into columns is magically simple using YSQLSH, YugabyteDB’s YSQL command line interface.  The […]

Read More

Generate a Random Timestamp Between Two Timestamps

Jim KnicelyJanuary 24, 2023

In YSQL there is the familiar built-in function named RANDOM which generates a random value between 0 (inclusive) and 1 (exclusive). Although […]

Read More

Display Table Size in YSQL

Jim KnicelyJanuary 23, 2023

You can display the size of a YSQL table via the pg_table_size function. Example: yugabyte=# CREATE TABLE test (c1 INT); CREATE TABLE […]

Read More

YSQL Function to Determine Data Type of Text

Jim KnicelyJanuary 12, 2023

YSQL inherits from Postgres the built-in function pg_typeof function which returns the OID of the data type of the value that is […]

Read More

Posts navigation

Older posts
Newer posts

NOTICE

This site is not affiliated, endorsed or associated with YugabyteDB. This site makes no claims on ownership of trademark rights. The author contributions on this site are licensed under CC BY-SA 3.0 with attribution required.

Find Us

Address
Here!

Hours
24×7

Recommended YugabyteDB Links

  • Home
  • Key Concepts
  • Docs
  • Blog
  • Forum
  • Content Library
  • Support



YugabyteDB Tips

Copyright 2025 - Knicely/Li