Additional SQL Server features and topics not covered by specific categories
El lenguaje de es forum es inglese.
Non solo decir "me da un error", mas por favor, incluye en mensaje de error.
Puedo advinar: el tipo de nombre_cliente es (n)varchar, y el tipo de fecha_pedido es date. Tiene que todo los valores en un colon haber el mismo tipo, Mas un nom non es un fecha.
Creo que esta unconsulta es mejor:
SELECT c.cod_cliente, c.nombre_cliente, p.fecha_pedido
FROM cod_clients c
JOIN pedidos p ON c.cod_cliente = p.cod_cliente
WHERE p.fecha_pedido = '2022-05-30'
This is an English-language forum.
Don't just say "gives me an error", but please include the error message-
I can guess: the data type of nombre_client is (n)varchar and the type of fecha_pedido is date. All values in a column must be of the same data type, But a name is not a date.
I think the query above is a better choice.