diff --git a/connecting-to-and-accessing-a-postgresql-database.html b/connecting-to-and-accessing-a-postgresql-database.html index 18aceed..85e959d 100644 --- a/connecting-to-and-accessing-a-postgresql-database.html +++ b/connecting-to-and-accessing-a-postgresql-database.html @@ -510,10 +510,10 @@

4.4.1 Executing a Queryquery <- "SELECT * FROM demographics LIMIT 10;" # Execute the query to fetch data -data_demogarphics <- dbGetQuery(con, query) +data_demographics <- dbGetQuery(con, query) # View the retrieved data -head(data_demogarphics) +head(data_demographics)

2. Perform data operations:

You can use SQL queries to perform operations such as filtering, aggregating, and joining data.

# Example query with filtering