# EXERCÍCIOS Parte 1

1. Crie uma tabela para armazenar o nome do feriado e data dele. Em seguida pesquise quais são os feriados nacionais (brasileiros) e insira nessa tabela. A tabela devera ter código do feriado (auto-incremento), nome do feriado e a data em que ele é comemorado.

```sql
	CREATE TABLE FERIADOS
	 (
	 CODFERIADO INT IDENTITY (1,1) CONSTRAINT PK_FERIADO PRIMARY KEY,
	 NOMEFERIADO VARCHAR(100),
	 DATAFERIADO DATE
		 );

	INSERT FERIADOS (NOMEFERIADO, DATAFERIADO)
				 VALUES ('INDEPENDENCIA','2018-09-07');

	SELECT * FROM FERIADOS;
```

```
2. Escolha 5 clientes e cadastre cartões de crédito para eles.
```

```sql

	INSERT CartaoCredito (AgenciaCodigo, ContaNumero, ClienteCodigo, CartaoCodigo, CartaoLimite, CartaoExpira, CartaoCodigoSeguranca)
                              VALUES (1,'562296-2',25,'1001-2002-3003-4004',3500.00,'2020-10-10',   123  );

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rdornel.gitbook.io/material/exercicios-sql/exercicios-parte-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
