From ca37d690e7d2f9eabba73cc404c8873104e89558 Mon Sep 17 00:00:00 2001 From: GowthamRaj K <43011442+gowthamrajk@users.noreply.github.com> Date: Fri, 30 Jul 2021 23:14:30 +0530 Subject: [PATCH] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b3d192..acf639e 100644 --- a/README.md +++ b/README.md @@ -805,4 +805,9 @@ The following guidelines indicate when the use of an index should be reconsidere - The purpose of the WITH CHECK OPTION is to ensure that all UPDATE and INSERTs satisfy the condition(s) in the view definition. - If they do not satisfy the condition(s), the UPDATE or INSERT returns an error. - + CREATE VIEW CUSTOMERS_VIEW AS + SELECT name, age + FROM CUSTOMERS + WHERE age IS NOT NULL + WITH CHECK OPTION; +